package com.zhangxu.microservice.auth.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhangxu.microservice.auth.common.enums.SystemStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统响应
 */
@Data
@Schema(description = "系统响应")
public class SystemResp {

    @Schema(description = "系统ID", example = "1")
    private Long id;

    @Schema(description = "系统编码", example = "employee")
    private String systemCode;

    @Schema(description = "系统名称", example = "员工管理系统")
    private String name;

    @Schema(description = "系统状态", example = "ENABLE")
    private SystemStatusEnum status;

    @Schema(description = "排序值", example = "1")
    private Integer sort;

    @Schema(description = "系统负责人用户ID", example = "1")
    private Long ownerId;

    @Schema(description = "备注", example = "这是员工管理系统")
    private String remark;

    @Schema(description = "创建时间", example = "2023-01-01T00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", example = "2023-01-01T00:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;
}